//上传文件
package EXample;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;

import static java.lang.Thread.sleep;

public class page05 {
    public static void main(String[] args) throws InterruptedException {
        WebDriver webDriver=new ChromeDriver();
        webDriver.get("http://localhost:63342/TEST02/EXample/Test05.html?_ijt=pnjrc7hu54qsvdpo2vjkoud13b&_ij_reload=RELOAD_ON_SAVE");
        sleep(3000);
        webDriver.findElement(By.cssSelector("body > input[type=file]")).sendKeys("D:\\截图.png");

    }
}
